package com.meichis.yndms.vm;

import androidx.lifecycle.MutableLiveData;

import com.meichis.yndms.model.DailySales;
import com.meichis.yndms.repository.manager.DailySalesManager;

import java.util.List;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-05-08 15:26
 */
public class DailySalesVM extends MyViewModel {
    private MutableLiveData<List<DailySales>> dailySalesList;
    public final int ProductSalesMoney = 1;
    public final int ProductSalesIQuantity = 3;

    public MutableLiveData<List<DailySales>> getDailySalesList() {
        if (dailySalesList == null) {
            dailySalesList = new MutableLiveData<>();
        }
        return dailySalesList;
    }

    public void GetUserSalesDayKanban() {
        DailySalesManager.getInstance().GetUserSalesDayKanban(getShowDialog(), getUserInfo().getValue().getOrgId(), getDailySalesList());
    }

}
